home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / pangpang_strike.swf / scripts / frame_1 / DoAction.as
Text File  |  2007-01-15  |  595b  |  27 lines

  1. function DispatchGameData()
  2. {
  3.    var _loc1_ = _root;
  4.    _loc1_.score = _loc1_.scoreTxt + 969696;
  5.    this.loadVariables(_loc1_.dir + "game_record." + _loc1_.scripttype,"POST");
  6. }
  7. function Timer()
  8. {
  9.    this.alarmTime = getTimer();
  10.    this.currentTime = 0;
  11. }
  12. this.stop();
  13. var MOLE_CNT = 10;
  14. var score = 0;
  15. _root.scoreTxt = 0;
  16. _root.levelTxt = 1;
  17. _root.timeTxt = 60;
  18. Timer.prototype.resetTime = function()
  19. {
  20.    alarmTime = getTimer();
  21. };
  22. Timer.prototype.checkTime = function(milliseconds)
  23. {
  24.    currentTime = getTimer();
  25.    return currentTime - alarmTime > milliseconds;
  26. };
  27.